import enummapping from "enummapping";

/**
 * 文件来源
 */
export const FileSourceEnum = enummapping({
    MANAGE: { code: 10, label: "管理员" },
    USER: { code: 20, label: "用户" },
});

/**
 * 文件类型
 */
export const FileTypeEnum = enummapping({
    IMAGE: { code: 10, label: "图片" },
    VIDEO: { code: 20, label: "视频" },
    ANNEX: { code: 30, label: "附件" },
});

/**
 * 文件存储方式
 */
export const FileStorageEnum = enummapping({
    LOCAL: { code: "local", label: "本地" },
    QINIU: { code: "qiniu", label: "七牛云" },
    ALIYUN: { code: "aliyun", label: "阿里云" },
    QCLOUD: { code: "qcloud", label: "腾讯云" },
});
